/*
 *  (\_()
 *  (o_O)
 * *(   )
 *
 * File:   main.c
 * @version 1.1
 * Author: Kathrin Holzmann, Jon Barg
 *
 */


/*
 * @param int *a: Integer Array that needs to get sorted
 * @param int len[]: indexlength from int array[]
 *
 * @return standart 0
 */
void insertionSort(int *a, int len){
    int i, j, tmp;

    for(i=0;i<len; i++){
        tmp=a[i];

        for(j=i; (tmp<a[j-1])&&(j>0);j--){
            a[j]=a[j-1];
        }
         a[j]=tmp;
    }
}